<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Station Shop Theme - Free CSS Template</title>
<meta name="keywords" content="station shop, theme, free template, templatemo, CSS, HTML" />
<meta name="description" content="Station Shop Theme, free CSS template provided by templatemo.com" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/templatemo_style.css" media="all" />
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ddsmoothmenu.css" media="all" />

<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script language="javascript" type="text/javascript">
function clearText(field)
{
    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}
</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "top_nav", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>

<link rel="stylesheet" type="text/css" media="all" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.dualSlider.0.2.css" />

<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.timers-1.2.js" type="text/javascript"></script>
<script src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.dualSlider.0.3.min.js" type="text/javascript"></script>

<script type="text/javascript">
    
    $(document).ready(function() {
        
        $(".carousel").dualSlider({
            auto:true,
            autoDelay: 6000,
            easingCarousel: "swing",
            easingDetails: "easeOutBack",
            durationCarousel: 1000,
            durationDetails: 600
        });
        
    });
    
</script>

</head>

<?php 
$params = Yii::app()->controller->getActionParams();
if (!empty($params)) {
    foreach($params as $key => $value) {
        if ($key == 'lang')
            $langParam = $value;
    }
}
?>
    
<body>

<div id="templatemo_wrapper">
	<div id="templatemo_header">
    
    	<div id="site_title">
        	<h1><a href="">Free CSS Templates</a></h1>
        </div>
        
        <div id="header_right">
            <a href="?r=SanPham<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php if(!Yii::app()->user->isGuest) {echo Yii::t('translation', 'ProductManagement');} ?></a><?php if (!Yii::app()->user->isGuest) { ?> | <?php } ?>
            <a href="?r=KhachHang/admin<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php if(!Yii::app()->user->isGuest) {echo Yii::t('translation', 'CustomersManagement');} ?></a><?php if (!Yii::app()->user->isGuest) { ?> | <?php } ?>
            <a href="?r=hoadon/admin<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php if(!Yii::app()->user->isGuest) {echo Yii::t('translation', 'BillManage');} ?></a><?php if (!Yii::app()->user->isGuest) { ?> | <?php } ?>
            <a href="?r=Cart<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php if(Yii::app()->user->isGuest) {echo Yii::t('translation', 'ShoppingCart');} ?></a><?php if (Yii::app()->user->isGuest) { ?> | <?php } ?>
            <?php
                if(!Yii::app()->user->isGuest)
                {
                    ?>
                    <a href="?r=site/Logout<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Logout').'  ('.Yii::app()->user->name.')' ?></a>
                    <?php
                }
                else
                {
                    ?>
                    <a href="?r=site/Login<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Login') ?></a>
                    <?php
                }
            ?>


        </div>
        
        <div class="cleaner"></div>
    </div> <!-- END of templatemo_header -->
    
    <div id="templatemo_menu">
    	<div id="top_nav" class="ddsmoothmenu">
            <ul>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>" class="selected"><?php echo Yii::t('translation', 'Home') ?></a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Company') ?></a></li>
                <li><a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Contact') ?></a></li>
            </ul>
        </div> <!-- end of ddsmoothmenu -->
        
        <?php
            // Create current params string and add lang key for multi-language
            $params = Yii::app()->controller->getActionParams();
            $paramString = '?';
            if (!empty($params))
            {
                foreach($params as $key => $value) {
                    if ($key != 'lang')
                        $paramString .= $key . '=' . $value . '&';
                }
            }
            $paramString .= 'lang=';
        ?>
        
        <div id="templatemo_languages">
                <ul>
                    <li>
			<a href="<?php echo Yii::app()->request->baseUrl;?>/index.php<?php echo $paramString; ?>vi">
                            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/vi.gif" alt="Vietnamese (VI)" title="Vietnamese (VI)">
                        </a>
                    </li>
                    <li>
			<a href="<?php echo Yii::app()->request->baseUrl;?>/index.php<?php echo $paramString; ?>en">
                            <img src="<?php echo Yii::app()->request->baseUrl; ?>/images/en.gif" alt="English (UK)" title="English (UK)">
                        </a>
                    </li>
		</ul>
            </div>
	<br style="clear: left" />   
        <div id="menu_second_bar">
        	<div id="top_shopping_cart">
            	<?php echo Yii::t('translation', 'ShoppingCart') ?>: <?php echo Yii::app()->shoppingCart->getCount();?> <strong><?php echo Yii::t('translation', 'Product') ?></strong> ( <a href="?r=cart<?php if (!empty($langParam)) echo "&lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Detail') ?></a> )
            </div>

            <!--search here -->
            <?php $this->widget('SiteSearch'); ?>

            <div class="cleaner"></div>
    	</div>
    </div> <!-- END of templatemo_menu -->
    
    <div id="templatemo_middle" class="carousel">	
			<div class="backgrounds">
				
				<div class="item item_1">
					<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/slider/02.jpg" alt="Slider 01" />
				</div><!-- /item -->
				
				<div class="item item_2">
					<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/slider/03.jpg" alt="Slider 02" />
				</div><!-- /item -->
				
				<div class="item item_3">
					<img src="<?php echo Yii::app()->request->baseUrl; ?>/images/slider/01.jpg" alt="Slider 03" />
				</div><!-- /item -->
				
			</div><!-- /backgrounds -->
    </div> <!-- END of templatemo_middle -->
    
    <div id="templatemo_main">
   		<div id="sidebar" class="float_l">
            <?php $this->widget('SiteLeftMenu'); ?>
            <?php $this->widget('SiteAdvanceSearch'); ?>

           </div>
		
		<!--Show product here -->
    <div class="float_r">
        <?php
            echo $content;

        ?>
    </div>

		<!--End show product -->

        <div class="cleaner"></div>
		
    </div> <!-- END of templatemo_main -->
		
    
    <div id="templatemo_footer">
    	<p>
			<a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Home') ?></a> | <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Company') ?></a> | <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.php?<?php if (!empty($langParam)) echo "lang=".$langParam; ?>"><?php echo Yii::t('translation', 'Contact') ?></a>
		</p>
    </div> <!-- END of templatemo_footer -->
    
</div> <!-- END of templatemo_wrapper -->

</body>
</html>